home *** CD-ROM | disk | FTP | other *** search
/ Java 1996 August / Java - Summer 1996.iso / kaffe-0.2 / lib / configure.in < prev    next >
Text File  |  1996-02-18  |  1KB  |  47 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT(support)
  3.  
  4. dnl Find the machine type and setup the linking options
  5. AC_CANONICAL_HOST
  6. changequote(<<, >>)dnl
  7. case "$host_cpu-$host_os" in
  8. i[345]86-freebsd2*)
  9.     PIC=-fPIC ; LDFLAGS=-Bshareable ;;
  10. i[345]86-linux*)
  11.     PIC=-fPIC ; LDFLAGS=-shared ;;
  12. i[345]86-netbsd*)
  13.     PIC=-fPIC ; LDFLAGS=-Bshareable ;;
  14. i[345]86-solaris2*)
  15.     PIC=-fPIC ; LDFLAGS=-G ;;
  16. *)
  17.     AC_MSG_ERROR(Architecture not supported)
  18. esac
  19. changequote([, ])dnl
  20. AC_SUBST(PIC)
  21. AC_SUBST(LDFLAGS)
  22.  
  23. dnl Checks for programs.
  24. AC_PROG_CC
  25. AC_PROG_INSTALL
  26.  
  27. dnl Checks for libraries.
  28.  
  29. dnl Checks for header files.
  30. AC_HEADER_STDC
  31. AC_CHECK_HEADERS(sys/time.h unistd.h)
  32.  
  33. dnl Checks for typedefs, structures, and compiler characteristics.
  34. AC_HEADER_TIME
  35. AC_STRUCT_TM
  36. AC_STRUCT_TIMEZONE
  37.  
  38. dnl Checks for library functions.
  39. AC_CHECK_FUNCS(getcwd gettimeofday mkdir mktime uname)
  40.  
  41. dnl Setup the subdirectories for make
  42. subdirs="native net"
  43. AC_SUBST(subdirs)
  44.  
  45. AC_CONFIG_HEADER(support/config.h)
  46. AC_OUTPUT(Makefile support/Makefile native/Makefile net/Makefile)
  47.